<div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">Customers in Group</header>
                        <div class="table-responsive">
                            <table class="table table-striped b-t text-small">
                                <thead>
                                    <tr>
                                        <th width="20">STT</th>
                                        <th>Customer Name</th>
                                        <th>Email</th>
                                        <th>Opened?</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $count=0; ?>
                                    <?php foreach ($list_customer as $k => $v) {
                                        // pr($v);die();
                                        $count++;
                                        ?>
                                        <tr>
                                            <td><?php echo $count; ?></td>
                                            <td><?php echo $v['Customer']['name']; ?></td>
                                            <td><?php echo $v['Customer']['email']; ?></td>
                                            <td>
                                                <?php $open=0;
                                                foreach($v['Email'] as $k1=>$v1){
                                                    // pr($v1);
                                                    if(($v1['id'] == $email_id) AND ($v1['CustomersEmail']['opened'] == 1)){
                                                            $open=1;
                                                    }
                                                } 
                                                if($open==1){
                                                    echo 'Yes';
                                                } else echo 'No';

                                                ?>

                                            </td>
                                        </tr>
                                        <?php
                                    } ?>
                                </tbody>
                            </table>
                        </div>
                        <!-- <footer class="panel-footer">
                            <div class="row">
                                <div class="col-sm-3 text-center"><small class="text-muted inline m-t-small m-b-small">showing 20-30 of 50 items</small> </div>
                                <div class="col-sm-5 text-right text-center-sm">
                                    <ul class="pagination pagination-small m-t-none m-b-none">
                                        <li><a href="#"><i class="fa fa-chevron-left"></i></a></li>
                                        <li><a href="#">1</a></li>
                                        <li><a href="#">2</a></li>
                                        <li><a href="#"><i class="fa fa-chevron-right"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                        </footer> -->
                    </section>
                </div>
            </div>